package zzs.generalframework.config.core.database.mysql.jdbc;

import javax.sql.DataSource;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.jdbc.core.JdbcTemplate;

/**
 * @title
 * @description
 * @project zzs-config
 * @package zzs.generalframework.config.core.database.mysql.jdbc
 * @author zzs
 * @date 2018年2月5日
 * @version 1.0
 */
@Configuration
public class MyJdbcTemplate
{
	@Autowired
	@Qualifier("springDataSource")
	DataSource dataSource;

	@Bean
	public JdbcTemplate getJdbcTemplate()
	{
		return new JdbcTemplate(dataSource);
	}

}
